import request from '@/utils/request'

// 查询部门列表
export function listDept(data) {
  return request({
    url: '/admin/HtDepartment/list',
    method: 'post',
    data
  })
}


// 查询部门详细
export function getDept(id) {
  return request({
    url: '/admin/HtDepartment/' + id,
    method: 'get'
  })
}

// 新增部门
export function addDept(data) {
  return request({
    url: '/admin/HtDepartment/create',
    method: 'post',
    data: data
  })
}
// 修改部门
export function updateDept(data) {
  return request({
    url: '/admin/HtDepartment/update',
    method: 'put',
    data: data
  })
}

// 删除部门
export function delDept(data) {
  return request({
    url: '/admin/HtDepartment/delete',
    method: 'post',
    data
  })
}
